from langchain.chat_models import ChatOpenAI
from langchain.schema import (
    AIMessage,
    HumanMessage,
    SystemMessage
)
import os

os.environ["OPENAI_API_KEY"] = "sess-qCX1fF30AgyeRtGPXivJSiOjDBoTno5CksuRwhst"
chat = ChatOpenAI(temperature=0)
result = chat([HumanMessage(content="Translate this sentence from English to Chines. I love programming.")])
print(result)